/**
 * MenuXM.java
 * Nov 14, 2013
 * Copyright: phongtdse60732@fpt.edu.vn
 */
package XMLEntities;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

/**
 * @author Lubu
 * @version 1.0
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Menu", propOrder = { "id", "name", "description", "imgPath",
		"dietId", "numberday", "numbermeal", "calo" })
public class MenuXM {
	@XmlAttribute(required = true)
	private int id;
	@XmlElement(required = true)
	private String name;
	@XmlElement(required = true)
	private String description;
	@XmlElement(required = true)
	private String imgPath;
	@XmlElement(required = true)
	private int dietId;
	@XmlElement(required = true)
	private int numberday;
	@XmlElement(required = true)
	private int numbermeal;
	@XmlElement(required = true)
	private int calo;

	public MenuXM() {
		super();
	}

	public MenuXM(int id, String name, String description, String imgPath,
			int dietId, int numberday, int numbermeal, int calo) {
		super();
		this.id = id;
		this.name = name;
		this.description = description;
		this.imgPath = imgPath;
		this.dietId = dietId;
		this.numberday = numberday;
		this.numbermeal = numbermeal;
		this.calo = calo;
	}

	/**
	 * Get value of the id
	 * 
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * Set value for the id
	 * 
	 * @param id
	 *            the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * Get value of the name
	 * 
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * Set value for the name
	 * 
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * Get value of the description
	 * 
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * Set value for the description
	 * 
	 * @param description
	 *            the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * Get value of the imgPath
	 * 
	 * @return the imgPath
	 */
	public String getImgPath() {
		return imgPath;
	}

	/**
	 * Set value for the imgPath
	 * 
	 * @param imgPath
	 *            the imgPath to set
	 */
	public void setImgPath(String imgPath) {
		this.imgPath = imgPath;
	}

	/**
	 * Get value of the dietId
	 * 
	 * @return the dietId
	 */
	public int getDietId() {
		return dietId;
	}

	/**
	 * Set value for the dietId
	 * 
	 * @param dietId
	 *            the dietId to set
	 */
	public void setDietId(int dietId) {
		this.dietId = dietId;
	}

	/**
	 * Get value of the numberday
	 * 
	 * @return the numberday
	 */
	public int getNumberday() {
		return numberday;
	}

	/**
	 * Set value for the numberday
	 * 
	 * @param numberday
	 *            the numberday to set
	 */
	public void setNumberday(int numberday) {
		this.numberday = numberday;
	}

	/**
	 * Get value of the numbermeal
	 * 
	 * @return the numbermeal
	 */
	public int getNumbermeal() {
		return numbermeal;
	}

	/**
	 * Set value for the numbermeal
	 * 
	 * @param numbermeal
	 *            the numbermeal to set
	 */
	public void setNumbermeal(int numbermeal) {
		this.numbermeal = numbermeal;
	}

	/**
	 * Get value of the calo
	 * 
	 * @return the calo
	 */
	public int getCalo() {
		return calo;
	}

	/**
	 * Set value for the calo
	 * 
	 * @param calo
	 *            the calo to set
	 */
	public void setCalo(int calo) {
		this.calo = calo;
	}

}
